package com.bingxu.flink.utils;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author :BingXu
 * @description :TODO
 * @date :2021/8/16 19:26
 * @modifier :
 */

public class TransFormat {
    public static <T> List<T> formatToList(Iterable<T> iterable) {
        List<T> list = new ArrayList<>();
        iterable.forEach(list::add);
//        for (T t : iterable) {
//            list.add(t);
//        }
        return list;
    }
}
